package c.x.jy.dao.dao;

import c.x.jy.dao.entity.SysRoleMenuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 角色与菜单对应关系
 * 
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-20 20:26:11
 */
@Mapper
public interface SysRoleMenuDao extends BaseMapper<SysRoleMenuEntity> {
    @Update("<script>   INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES   <foreach collection='list' item='item' index='index'  separator=','> (  #{item.roleId},#{item.menuId}    )  </foreach> </script>  ")
    int insertbatch(List<SysRoleMenuEntity> list);
}

